package org.lvxiao.example.enums;

public enum OrderStatusType implements TypeEnumInterface<Integer, OrderStatusType>{

	SUCCESS(40, "完成"),
	FAIL(50, "失败");
	private int code;
	private String name;
	
	private OrderStatusType(int code, String name){
		this.code = code;
		this.name = name;
	}
	@Override
	public Integer getCode() {
		return this.code;
	}

	@Override
	public String getName() {
		return this.name;
	}
	
	public static OrderStatusType getname() {
		return OrderStatusType.FAIL;
	}

}
